package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName(value = "tb_crm_contract")
public class Contract {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String number;
    @TableField(value = "business_id")
    private Integer businessId;
    private Double price;
    @TableField(value = "due_time")
    private Date dueTime;
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;
    @TableField(value = "creator_user_id")
    private Integer creatorUserId;
    private String content;
    private String description;
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(value = "start_date")
    private Date startDay;
    @TableField(value = "end_date")
    private Date endDay;
    private String status;
    private Integer delete_status;
    @TableField(value = "delete_user_id")
    private Integer deleteUserId;
    @TableField(value = "delete_time")
    private Date deleteTime;
}
